package com.java.demo.oos;

/**
 * @auther zhangwj
 * @date 2020/7/16 8:48 下午
 */
public class Demo {

   public static void out(person person){
       person.out();
   }

    public static void main(String[] args) {
        out(new client());
    }
}

class person {

    public void out() {
        System.out.println("我是父类");
    }
}

class client extends person {


    @Override
    public void out() {
        System.out.println("1111111");
    }

    public void cOut() {
        System.out.println("我是子类");
    }
}